demos/icon-browser: Add common_cflags to build
authorTimm Bäder <mail@baedert.org>
Fri, 6 Mar 2020 17:53:05 +0000 (18:53 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 6 Mar 2020 17:53:05 +0000 (18:53 +0100)
And fix the generated warnings

demos/icon-browser/iconbrowserwin.c
demos/icon-browser/meson.build

index 471a7d1bc238316e5b69f2a2c033d99d838c4234..858e246c5e11999d309ac2237b7aca127241aaac 100644 (file)
@@ -383,6 +383,8 @@ get_image_paintable (GtkImage *image)
       if (icon == NULL)
         return NULL;
       return GDK_PAINTABLE (icon);
+    case GTK_IMAGE_GICON:
+    case GTK_IMAGE_EMPTY:
     default:
       g_warning ("Image storage type %d not handled",
                  gtk_image_get_storage_type (image));
index a3ec8664fa693a0887961c5a3c7a917f272d5fca..6a8cd80e409a7882eaf9639d822d8113d876d4cd 100644 (file)
@@ -11,6 +11,7 @@ iconbrowser_resources = gnome.compile_resources('iconbrowser_resources',
 
 executable('gtk4-icon-browser',
            iconbrowser_sources, iconbrowser_resources,
+           c_args: common_cflags,
            dependencies: libgtk_dep,
            include_directories: confinc,
            gui_app: true,